package com.sendemail.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by Studio on 2017/5/15.
 * 发送邮件常量
 */
@Component
@ConfigurationProperties(prefix="my")
public class Constants {
    //发送邮件方
    public static String emailFrom;
    //邮件队列
    public static String emailQueue = "email_queue";
    public static String testQueue = "test";

    public static String getEmailFrom() {
        return emailFrom;
    }

    public static void setEmailFrom(String emailFrom) {
        Constants.emailFrom = emailFrom;
    }

}
